package com.xdf.docmanagementsystem.enums;

/**
 * @program: doc-management-system
 * @description: 响应
 * @author: Zhang
 * @create: 2020-06-20 11:56
 **/
public enum ResponseEnum {
    OK("成功", "操作成功!"),
    NOT_ALLOW("失败", "不允许该操作!"),
    NAME_DUMP("失败", "，名称重复!"),
    ERROR_ADD("失败", "未成功新增"),
    ERROR_UPDATE("失败", "未成功修改"),
    ERROR_DELETE("失败", "未成功删除"),
    ALREADY_DELETE("失败", "已经删除"),
    NO_USERNAME("失败", "没有用户名"),
    PWD_ERR("失败", "密码错误!"),
    NO_PWD("失败", "没有密码"),
    NOT_EXIST("失败", "不存在该单据!"),
    FAILED("失败", "操作失败");
    private String state;
    private String message;

    public String getState() {
        return state;
    }

    public String getMessage() {
        return message;
    }

    ResponseEnum(String state, String message) {
        this.state = state;
        this.message = message;
    }
}
